<?php
namespace Controller;

use Hoa\Registry\Registry;
use Library\Log;
use Library\View;
use Library\Redis;


/**
 * RedisController
 * @author los_gsy
 */
class RedisController extends BaseController {
	/**
	 * 构造函数
	 */
	public function __construct() {
		parent::__construct();
	}


	/**
	 * test
	 */
	public function test() {
		echo __METHOD__;
	}


	/**
	 * redis
	 */
	public function redis() {
		Redis::set('foo', 'bar');
		$foo = Redis::get('foo');
		var_dump($foo);
		echo '<br />';

// 		Redis::expire('foo', 0);
// 		var_dump(Redis::exists('foo'));
	}


}